package com.jic.market.request.rest.discountamount;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yinhaijun
 * @date: 2020/4/3
 */
@Data
public class PromotionGoods implements Serializable {

    private static final long serialVersionUID = -7834419059127921176L;

    @Valid
    @NotBlank(message = "商品id不能为空")
    @ApiModelProperty(notes = "商品id", required = true)
    private Long mpId;

    @Valid
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(notes = "数量", required = true)
    private Integer num;


}
